@extends('admin.layout')
@section('title',$title)
@section('content') 
<div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
               品牌管理
                <small>品牌管理</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="#">品牌编辑</a></li>
                <li class="active">品牌编辑</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">品牌编辑</h3>
                        </div><!-- /.box-header -->
                        <!-- form start -->
                        @if(count($errors)>0)
                            <div class="alert alert-danger alert-dismissable">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">x</button>
                            <h4><i class="icon fa fa-ban"></i>警告！</h4>
                            <ol>
                                @foreach($errors->all()as $error)
                                <li>{{$error}}</li>
                                @endforeach

                            </ol>
                            </div>
                            @endif

                        <form role="form" action="/admin/brand/insert" method="post" enctype="multipart/form-data">
                        {{ csrf_field() }}
                        
                        

                            <div class="box-body">
                                <div class="form-group">
                                    <label for="exampleInputEmail1">品牌名</label>
                                    <input type="text" value="" name = "name"  class="form-control" 
                                           placeholder="请输入品牌名">
                                </div>
                                
                                 <div class="form-group">
                                    <label >品牌描述</label>
                                    <input type="text" name = "desc" value="" class="form-control" 
                                           placeholder="请输入品牌描述">
                                </div>
                                <div class="form-group">
                                    <label >品牌连接</label>
                                    <input type="text" name = "url" value="" class="form-control" 
                                           placeholder="请输入品牌连接">
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">品牌在前台显示顺序</label>
                                    <input type="text" name = "order" value="" class="form-control" id="exampleInputPassword1"
                                           placeholder="顺序越小越靠前，默认0">
                                </div>

                                <div class="form-group">
                                    <label for="">是否在前台显示</label>
                                    <input type="text" name = "show" value="" class="form-control" 
                                           placeholder="0为不显示，默认1为显示">
                                </div>

                                 
                                <div class="form-group">
                                    <label for="exampleInputFile">上传logo</label>
                                    <input type="file" name = "logo" id="exampleInputFile">
                                   
                                </div>
                                
                            </div><!-- /.box-body -->

                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">添加</button>
                                <button type="reset" class="btn btn-danger">重置</button>
                            </div>
                            
                        </form>
                    </div><!-- /.box -->               
                        </div><!-- /.box-body -->
                    </div><!-- /.box -->
                </div><!--/.col (right) -->
            </div>   <!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
    @endsection